Skip to content

chore(hygiene): gitignore regenerable 141 sidecar + Python bytecode (#415 align) - #858

Merged
jsboige merged 1 commit into
masterfrom
chore/gitignore-141-sidecar-python-cache
Jul 23, 2026
Merged

chore(hygiene): gitignore regenerable 141 sidecar + Python bytecode (#415 align)#858
jsboige merged 1 commit into
masterfrom
chore/gitignore-141-sidecar-python-cache

Conversation

@jsboige

@jsboige jsboige commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

What

Housekeeping micro-PR, ai-01-directed (Re: ASK tick 90, msg-7d6ioe). Gitignores the untracked docs/taxonomy/141-aif-candidates-fullscale.json (regenerable derived data) + adds standard Python bytecode hygiene. 0 prod CSV, 0 code, docs/config-only, reversible.

(1) 141 sidecar — regenerable, not source

docs/taxonomy/141-aif-candidates-fullscale.json (1.3 MB) is regenerable derived data. Verified code=truth:

Referenced by 7 committed docs/scripts (all document the regen path). Aligns #415 (reduce .git weight): a regenerable 1.3 MB artifact does not belong in git. Keep local, never commit.

(2) Python bytecode hygiene (included, same commit)

The repo ships Python tooling (tools/, docs/taxonomy/, docs/investigations/scripts/) but had no __pycache__/*.pyc ignore pattern — 2 untracked __pycache__ dirs present today (real accidental-commit risk as the Python tooling grows). Added standard __pycache__/ + *.py[cod] + *$py.class. Not scope creep — same single-purpose hygiene commit.

Verification

$ git check-ignore -v docs/taxonomy/141-aif-candidates-fullscale.json
.gitignore:265:docs/taxonomy/141-aif-candidates-fullscale.json   ✓ ignored
$ git check-ignore -v docs/taxonomy/__pycache__/
.gitignore:270:__pycache__/   ✓ ignored
$ git check-ignore -v tools/foo.pyc
.gitignore:271:*.py[cod]   ✓ ignored

False-positive guard: 847-*.csv/md, 141-aif-fullscale-report.md, acompte — all NOT ignored (source, must stay tracked). ✓

git status after: 141 JSON + __pycache__ gone from untracked; only .gitignore (this change) + .mcp.json/tmp/ (out of scope, not my lane) remain.

Governance

  • 0 prod CSV (T&A freeze). 0 code touched. Config-only, fully reversible (delete the 3 lines).
  • Lane: po-2024 (content/hygiene). ai-01 explicitly greenlit ("Micro-PR 5 min OK").
  • Did NOT delete the local file (preservation — regen on demand).

Refs

ai-01 msg-7d6ioe (Re: ASK tick 90). #415 (reduce .git weight). #623 (141-aif-fullscale.py). #141 (AIF chantier). Base master 18d16962.

🤖 Generated with Claude Code

…415 align)

Housekeeping micro-PR, ai-01-directed (Re: ASK tick 90, msg-7d6ioe).

1. docs/taxonomy/141-aif-candidates-fullscale.json (1.3 MB) = regenerable derived
   data. VERIFIED code=truth: 141-aif-fullscale.py (committed, #623) writes it;
   `python docs/taxonomy/141-aif-fullscale.py --finalize` regenerates from
   checkpoint (no API calls). 141-aif-fullscale-report.md ALREADY documents it as
   "tmp/ - regenerable via --finalize" (lines 11/118) + the regen command, so no
   report edit needed (note present, no pendulum). Aligns #415 (reduce .git weight):
   regenerable artifact does not belong in git. Keep local, never commit.

2. __pycache__/ + *.py[cod] + *$py.class = standard Python hygiene. The repo ships
   Python tooling (tools/, docs/taxonomy/, docs/investigations/scripts/) but had NO
   bytecode ignore pattern — 2 untracked __pycache__ dirs present today (real
   accidental-commit risk). Machine-specific, churns. Included in the same hygiene
   commit (not scope creep: same single-purpose).

Verification: git check-ignore confirms the 141 JSON + __pycache__ + *.pyc now
matched; 847-*.csv/md + 141-aif-fullscale-report.md + acompte NOT ignored
(false-positive guard). git status: 141 JSON + __pycache__ gone from untracked.

0 prod CSV. 0 code. docs/config-only, reversible.

Co-Authored-By: Claude-Code <noreply@anthropic.com>
@jsboige
jsboige merged commit d10149d into master Jul 23, 2026
3 checks passed
@jsboige
jsboige deleted the chore/gitignore-141-sidecar-python-cache branch July 23, 2026 10:43
jsboige added a commit that referenced this pull request Jul 25, 2026
Root `tmp/` was untracked-but-not-ignored, risking accidental commit of ~1.3 MB
of regenerable local working files (AIF #141 full-scale candidate sidecars,
#498 phase2/3 datasets, run logs, audit samples). Flagged by po-2023 as an
accidental-commit hazard (web.config lives in the adjacent working tree on the
DNN host; the same discipline applies here).

The .gitignore already documents these as "tmp/regenerable" (L262 comment) and
handles the largest sidecar per-file (`docs/taxonomy/141-aif-candidates-fullscale.json`),
but the `tmp/` directory itself was not covered. Adds a root-anchored `/tmp/` entry
so only the root scratch dir is ignored — a legitimate nested `tmp/` elsewhere in
the tree is unaffected.

All content under tmp/ is regenerable from committed scripts
(docs/taxonomy/141-aif-fullscale.py, tools/498-*.py) — no source lost.

Aligns with #858 (reduce accidental-commit surface, #415 git-weight hygiene).

Co-authored-by: Your <your.email@example.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant